/**
 * 
 */
package scraper;
import java.util.ArrayList;
import java.util.List;

/**
 * @author thedaego
 *
 */
public class WebResource {
    private String resourceName;
    private List<DataLocator> dataLocators = new ArrayList();

    public WebResource(String resourceName, List<DataLocator> dataLocators) {
        this.resourceName = resourceName;
        this.dataLocators = dataLocators;
    }
    
    public WebResource(String resourceName, DataLocator dataLocator) {
        this.resourceName = resourceName;
        this.dataLocators.add(dataLocator);
    }
    public WebResource(String name) {
        this.resourceName = name;
    }

    public void setDataLocators(List<DataLocator> dataLocators) {
        this.dataLocators = dataLocators;
    }


    public void addDataLocator(DataLocator locator){
        this.dataLocators.add(locator);
    }
    public String getName() {
        return resourceName;
    }

    public void setName(String name) {
        this.resourceName = name;
    }

    public List<DataLocator> getDataLocators(){
        return this.dataLocators;
    }
}
